﻿<UserControl x:Class="AssemblyInfoEditor.SettingsEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0"
             mc:Ignorable="d" 
             d:DesignHeight="465" d:DesignWidth="370"
             Name="AssemblyInfoHelperWindow"
             Background="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowBackgroundKey}}" Unloaded="AssemblyInfoHelperWindow_Unloaded">
    <Grid>
        <StackPanel Margin="12" CanVerticallyScroll="True" VerticalAlignment="Top" Name="expanderStack">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="75" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                
                <TextBlock Grid.Row="0" Grid.Column="0" Text="Project" VerticalAlignment="Center" />
                <ComboBox Grid.Row="0" Grid.Column="1" Height="23" Name="projectSelector" />
            </Grid>
            <Expander Header="Product Information" IsExpanded="True">
                <Grid Margin="12,0,12,0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />
                        <RowDefinition Height="20" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="89" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <!-- Title Name Settings -->
                    <TextBlock Grid.Row="0" Grid.Column="0" Name="titleLabel" Text="Title" VerticalAlignment="Center" />
                    <TextBox Grid.Row="0" Grid.Column="1" Name="titleText" Height="23" />

                    <!-- Product Name Settings -->
                    <TextBlock Grid.Row="1" Grid.Column="0" Name="productLabel" Text="Product Name" VerticalAlignment="Center" />
                    <TextBox Grid.Row="1" Grid.Column="1" Name="productText" Height="23" />

                    <!-- Company Name Settings -->
                    <TextBlock Grid.Row="2" Name="companyLabel" Text="Company" VerticalAlignment="Center"/>
                    <TextBox Grid.Row="2" Grid.Column="1" Name="companyText" Height="23" />
                    
                    <!-- Copyright Settings -->
                    <TextBlock Grid.Row="3" Name="copyrightLabel" Text="Copyright" VerticalAlignment="Center"/>
                    <TextBox Grid.Row="3" Grid.Column="1" Name="copyrightText" Height="23" />

                    <!-- Trademark Settings -->
                    <TextBlock Grid.Row="4" Name="trademarkLabel" Text="Trademark" VerticalAlignment="Center" />
                    <TextBox Grid.Row="4" Grid.Column="1" Name="trademarkText" Height="23" />

                    <!-- Version Settings -->
                    <TextBlock Grid.Row="5" Name="manualVersionLabel" Text="Version" VerticalAlignment="Center" />
                    <TextBox Grid.Row="5" Grid.Column="1" Name="manualVersionText" Height="23" />
                    
                    <!-- Version Incrementing Enabling -->
                    <CheckBox Grid.Row="6" Grid.Column="1" Name="enableVersionIncrementCheckbox" VerticalAlignment="Center" Content="Automatically increment version" Unchecked="enableVersionIncrementCheckbox_Unchecked" Checked="enableVersionIncrementCheckbox_Checked" />
                </Grid>
            </Expander>
            <Expander Header="Version Settings" IsExpanded="True">
                <Grid Margin="12,0,12,0" Name="versionSettingsGrid">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <!-- Major and Minor Version Settings -->
                    <Grid Grid.Row="0" Grid.ColumnSpan="2" >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="30" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="39" />
                            <ColumnDefinition Width="133*" />
                            <ColumnDefinition Width="48" />
                            <ColumnDefinition Width="124*" />
                        </Grid.ColumnDefinitions>
                        
                        <!-- Major Build Number Settings -->
                        <TextBlock Text="Major" VerticalAlignment="Center" Grid.ColumnSpan="2" Margin="0,7,122,7" />
                        <TextBox Name="majorText" Grid.Column="1" Height="23" Text="1" />

                        <!-- Minor Build Number Settings -->
                        <TextBlock Grid.Column="2" Text="Minor" VerticalAlignment="Center" Margin="5,0,0,0" Grid.ColumnSpan="2" />
                        <TextBox Name="minorText" Grid.Column="3" Height="23" Text="0" />
                    </Grid>
                    
                    <!-- Build Number Settings -->
                    <TextBlock Grid.Row="1" Grid.Column="0" Name="buildComboLabel" Text="Build Number Format" VerticalAlignment="Center" />
                    <ComboBox Grid.Row="1" Grid.Column="1" Height="23" Name="buildFormatCombo" SelectionChanged="buildFormatCombo_SelectionChanged" />
                    
                    <!-- Revision Number Settings -->
                    <TextBlock Grid.Row="2" Grid.Column="0" Name="revComboLabel" Text="Revision Number Format" VerticalAlignment="Center" />
                    <ComboBox Grid.Row="2" Grid.Column="1" Height="23" Name="revFormatCombo" SelectionChanged="revFormatCombo_SelectionChanged" />
                    
                    <!-- Version Preview -->
                    <TextBlock Grid.Row="3" Grid.Column="0" Name="versionPreviewLabel" Text="Version Preview" VerticalAlignment="Center" />
                    <TextBlock Grid.Row="3" Grid.Column="1" Name="versionPreview" Text="1.0.0000.0000" VerticalAlignment="Center" />
                </Grid>
            </Expander>      
        </StackPanel>
    </Grid>
</UserControl>
